package jxtend.processor.eclipse.visitor;

import jxtend.processor.eclipse.visitor.handler.ASTNodeVisitorContext;

import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.lookup.Scope;

@SuppressWarnings("restriction")
public class ASTNodeVisitorWrapper implements ASTNodeVisitor {

	private final ASTNodeVisitor target;

	public ASTNodeVisitorWrapper(ASTNodeVisitor target) {
		super();
		this.target = target;
	}

	@Override
	public boolean visit(ASTNodeVisitorContext context, ASTNode node, Scope scope) {
		return target.visit(context, node, scope);
	}

	@Override
	public void endVisit(ASTNodeVisitorContext context, ASTNode node, Scope scope) {
		target.endVisit(context, node, scope);
	}
}
